<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        function callAndroid() {
            test.hello("JS调用了Android的hello方法")
        }

        function getinfo() {
           //var  result=android.getITermInfo();
           alert("111");

        }

    </script>
</head>
<body>
<div>

    <button id="button1" onclick="callAndroid()">点击调用js代码</button>

    <button id="button2" onclick="getinfo()">点击获取终端设备信息</button>
</div>
</body>
</html>